Automattic\WooCommerce\Blocks\BlockTemplatesController B

Total Complexity 87
Dependencies 6
Dependents 1
Total lines 546
Lines of code 305
Logical lines of code 171
Comment lines 173
Methods 14
Properties 0

Methods 14

Method Rating Maintainability Complexity Lines of code
add_block_templates()
B
43 17 47
init()
A
40 15 60
get_block_templates_from_woocommerce()
A
43 12 48
get_block_template_fallback()
A
43 12 47
get_block_file_template()
A
47 8 34
render_woocommerce_template_part()
S
63 6 9
check_should_use_blockified_product_grid_templates()
S
64 4 10
update_product_archive_title()
S
64 4 10
add_archive_product_to_eligible_for_fallback_templates()
S
59 2 16
block_template_is_available()
S
65 3 9
add_block_template_details()
S
79 1 3
get_block_templates_from_db()
S
75 1 4
get_block_templates()
S
72 1 5
get_template_path_from_woocommerce()
S
78 1 3